22 {
23 if (!super.ActionCondition(player, target, item))
24 return false;
25
26 GardenBase garden_base;
27 if ( Class.CastTo(garden_base, target.GetObject()))
28 {
29 Slot slot;
30
31 array<string> selections = new array<string>;
32 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
33 string selection;
34
35 for (int s = 0; s < selections.Count(); s++)
36 {
37 selection = selections[s];
38 slot = garden_base.GetSlotBySelection( selection );
39 if (slot)
40 break;
41 }
42
43 if ( slot && slot.GetPlant() )
44 {
47 return true;
48 }
49 }
50 return false;
51 }