forked from MagicBane/Server
Project reformat.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
package engine.powers.poweractions;
|
||||
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.Enum.ModType;
|
||||
import engine.Enum.SourceType;
|
||||
@@ -128,21 +129,21 @@ public class ApplyEffectPowerAction extends AbstractPowerAction {
|
||||
}
|
||||
}
|
||||
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
||||
if(((Mob)awo).isPet()) {
|
||||
if (((Mob) awo).isPet()) {
|
||||
((Mob) awo).recalculateStats();
|
||||
}
|
||||
}
|
||||
this.effect.startEffect(source, awo, trains, eff);
|
||||
}
|
||||
//apply effects to mobs within range for chants
|
||||
if(pb.isChant){
|
||||
for(AbstractGameObject ago : WorldGrid.getObjectsInRangePartial(awo.loc,pb.range, MBServerStatics.MASK_MOB)){
|
||||
Mob mob = (Mob)ago;
|
||||
if(mob.playerAgroMap.containsKey(source.getObjectUUID()))
|
||||
if (pb.isChant) {
|
||||
for (AbstractGameObject ago : WorldGrid.getObjectsInRangePartial(awo.loc, pb.range, MBServerStatics.MASK_MOB)) {
|
||||
Mob mob = (Mob) ago;
|
||||
if (mob.playerAgroMap.containsKey(source.getObjectUUID()))
|
||||
mob.playerAgroMap.put(source.getObjectUUID(), mob.playerAgroMap.get(source.getObjectUUID()).floatValue() + pb.hateValue);
|
||||
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
||||
Mob mob = (Mob) awo;
|
||||
if (mob.playerAgroMap.containsKey(source.getObjectUUID()))
|
||||
|
||||
Reference in New Issue
Block a user