TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ShadowDodge()

void Terraria.Player.ShadowDodge ( )
inline

Definition at line 36828 of file Player.cs.

36829 {
36831 if (whoAmI != Main.myPlayer)
36832 {
36833 return;
36834 }
36835 for (int i = 0; i < maxBuffs; i++)
36836 {
36837 if (buffTime[i] > 0 && buffType[i] == 59)
36838 {
36839 DelBuff(i);
36840 }
36841 }
36843 NetMessage.SendData(62, -1, -1, null, whoAmI, 2f);
36844 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
void SetImmuneTimeForAllTypes(int time)
Definition Player.cs:36818
void PutHallowedArmorSetBonusOnCooldown()
Definition Player.cs:36846
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
Definition Player.cs:1692
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684
static int maxBuffs
Definition Player.cs:3380
void DelBuff(int b)
Removes the buff at the provided index in F:Terraria.Player.buffType and F:Terraria....
Definition Player.cs:5868

References Terraria.Player.buffTime, Terraria.Player.buffType, Terraria.Player.DelBuff(), Terraria.Player.longInvince, Terraria.Player.maxBuffs, Terraria.Main.myPlayer, Terraria.Player.PutHallowedArmorSetBonusOnCooldown(), Terraria.NetMessage.SendData(), Terraria.Player.SetImmuneTimeForAllTypes(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.Hurt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: