34 {
35 TerritoryFlag totem = TerritoryFlag.Cast( target.GetObject() );
36 if (!totem)
37 return false;
38
39 float state = totem.GetAnimationPhase("flag_mast");
40
41 if ( totem && totem.FindAttachmentBySlotName("Material_FPole_Flag") )
42 {
43 if ( player.GetFlagTendencyRaise() && state < 1 )
44 {
46 return true;
47 }
48 else if ( !player.GetFlagTendencyRaise() && state > 0 )
49 {
51 return true;
52 }
53 }
54 return false;
55 }